﻿using LuShanTea.Service.Entities;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuShanTea.Service.ModelConfig
{
    class SettingConfig:EntityTypeConfiguration<Setting>
    {
        public SettingConfig()
        {
            this.ToTable("T_Settings");
            Property(s => s.Key).IsRequired().HasMaxLength(128);
            Property(s => s.Value).IsRequired().HasMaxLength(256);
            Property(s => s.Describle).HasMaxLength(256);

        }
    }
}
